import { getWordDetails } from "./helpers";
import { NextRequest } from "next/server";

export async function POST(req: NextRequest) {
  const { content } = await req.json();
  return Response.json({ words: getWordDetails(content) });
}
